import request from '@/utils/request'

// 查询兽药产品列表
export function listShouyao(query) {
  return request({
    url: '/wuyi/shouyao/list',
    method: 'get',
    params: query
  })
}

// 查询兽药产品详细
export function getShouyao(id) {
  return request({
    url: '/wuyi/shouyao/' + id,
    method: 'get'
  })
}

// 新增兽药产品
export function addShouyao(data) {
  return request({
    url: '/wuyi/shouyao',
    method: 'post',
    data: data
  })
}

// 修改兽药产品
export function updateShouyao(data) {
  return request({
    url: '/wuyi/shouyao',
    method: 'put',
    data: data
  })
}

// 删除兽药产品
export function delShouyao(id) {
  return request({
    url: '/wuyi/shouyao/' + id,
    method: 'delete'
  })
}
